import {
  cipher
} from 'vma-assist'
import defaultPicture from '@/assets/images/common/defaultPicture.png'

const config: any = cipher.decodeJSON(process.config)

export const nodeEnv: string = config.NODE_ENV
export const DEBUG_MODE: boolean = config.DEBUG_MODE
export const isDev = config.NODE_ENV === 'dev' || config.NODE_ENV === 'development'
export const api: string = config.api
export const appNamespace: string = `${nodeEnv}/${config.app}`
export const loginInfo = {
  loginNameLogo: '管理后台',
  bg: 'https://keji-res.h5h5h5.cn/5ad9c87a-5c3f-4466-b990-8eb9e40e0a0d',
  technicalSupport: '',
  caseNumber: '',
  copyRight: ''
}
export const ckeditorUploadUrl = `${api}/v1/common/upload/editor4.4`
export const getQiniuTokenUrl = () => `${api}/v1/common/qiniu_token`
export const APP_ID: string = config.APP_ID
export const APP_SECRET: string = config.APP_SECRET
export const CHANNEL_CODE: string = config.CHANNEL_CODE
export {
  // 默认图片
  defaultPicture
}
